import gtk
        
def trayMenu(self, status_icon, button, activate_time):
    popmenu =  gtk.glade.XML("absynth-ftp.glade", "traymenu")
    dic = {
           "on_about" : self.about_dialog,
           "on_disconnect" : self.on_connect,
           "on_destroy" : gtk.main_quit
           }
    
    popmenu.signal_autoconnect(dic)
    
    if self.connection.get_status() == False:
        popmenu.get_widget('disconnect').set_sensitive(False)
    popmenu.get_widget('traymenu').popup(None, None, None, button, activate_time)